package com.clw.service;

import com.clw.dataobject.PurchaseOrder;
import com.clw.dataobject.PurchaseOrderDetail;
import com.clw.dto.PurchaseOrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by Administrator on 2018-03-01.
 */
public interface PurchaseOrderService {
    Page<PurchaseOrder> findPage(String purNo,String supplierId,String startTime,String endTime, Pageable pageable);

    Long getSize(String purNo,String supplierId,String startTime,String endTime);

    List<PurchaseOrderDetail> getDetail(String purNo);

    PurchaseOrder findOne(Integer id);

    PurchaseOrderDTO add(PurchaseOrderDTO dto);

    PurchaseOrderDTO update(PurchaseOrderDTO dto);

    PurchaseOrder del(PurchaseOrder purchaseOrder);

    PurchaseOrder save(PurchaseOrder order);

    PurchaseOrder review(PurchaseOrder order);

    List<PurchaseOrder> getAllFinishOrder();
}
